# set the include path for X, qt and KDE
INCLUDES = $(all_includes)

# these are the headers for your project
noinst_HEADERS = clipboardpoll.h connectiondialog.h connectiondialogbase.h \
	dictionary.h fetchworddialog.h floatwin.h htmlpart.h kecdict.h preferencesdialog.h \
	settings.h translatedialog.h translatedialogbase.h vocabularylist.h

# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO

messages: rc.cpp
	$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
	$(XGETTEXT) *.cpp -o $(podir)/kecdict.pot

KDE_ICON = AUTO

#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed.  it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = kecdict

# the application source, library search path, and link libraries
kecdict_SOURCES = clipboardpoll.cpp connectiondialog.cpp \
	connectiondialogbase.cpp dictionary.cpp fetchworddialog.cpp fetchworddialogbase.ui floatwin.cpp \
	htmlpart.cpp kecdict.cpp main.cpp preferencesdialog.cpp settings.cpp \
	translatedialog.cpp translatedialogbase.cpp vocabularylist.cpp
kecdict_LDFLAGS = $(KDE_RPATH) $(all_libraries)
kecdict_LDADD = $(LIB_KHTML) $(LIB_KDEUI)

# this is where the desktop file will go 
shelldesktopdir   = $(kde_appsdir)/Utilities
shelldesktop_DATA = kecdict.desktop

# this is where the shell's XML-GUI resource file goes
shellrcdir   = $(kde_datadir)/kecdict
shellrc_DATA = kecdictui.rc

